package smoketest.freemarker;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * war包方式启动
 */
public class SpringBootServletInitializerApplication extends SpringBootServletInitializer {

	/**
	 * 使用外部容器，打war包然后部署，那么你需要继承这个类然后重写configure方法
	 *
	 * @param builder a builder for the application context
	 * @return
	 */
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SpringBootServletInitializerApplication.class);
	}
}
